#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>

int Count_Number(int N);

int main()
{

	int N, D = 0;

	scanf("%d", &N);

	D = Count_Number(N);
	printf("%d", D);
	return 0;
}
int Count_Number(int N) {
    if (N == 0) {
        return 1;
    }
    int count = 0;
    while (N != 0) {
        N /= 10;        count++;
    }
    return count;
}